/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.area_info.service;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.area_info.entity.AreaInfo;
import com.thinkgem.jeesite.modules.area_info.dao.AreaInfoDao;

/**
 * 区域信息Service
 * @author xlp
 * @version 2019-04-11
 */
@Service
@Transactional(readOnly = true)
public class AreaInfoService extends CrudService<AreaInfoDao, AreaInfo> {

	public AreaInfo get(String id) {
		return super.get(id);
	}
	
	public List<AreaInfo> findList(AreaInfo areaInfo) {
		return super.findList(areaInfo);
	}
	
	public Page<AreaInfo> findPage(Page<AreaInfo> page, AreaInfo areaInfo) {
		return super.findPage(page, areaInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(AreaInfo areaInfo) {
		//更新时间
		areaInfo.setUpdateTime(new Date());
		super.save(areaInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(AreaInfo areaInfo) {
		super.delete(areaInfo);
	}
	
}